package com.tgr.shortLink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tgr.shortLink.admin.dao.entity.GroupDO;
import com.tgr.shortLink.admin.dto.req.GroupSortReqDTO;
import com.tgr.shortLink.admin.dto.req.GroupUpdateReqDTO;
import com.tgr.shortLink.admin.dto.resp.GroupListRespDTO;

import java.util.List;

/**
 * 短链接接口
 */
public interface GroupService extends IService<GroupDO> {

    void saveGroup(String groupName);

    void saveGroup(String userName, String groupName);

    boolean hasGid(String userName,String gid);
    List<GroupListRespDTO> listGroup();

    void updateGroup(GroupUpdateReqDTO requestParam);
    void deleteGroup(String gid);

    void sortGroup(List<GroupSortReqDTO> requestParam);
}
